package com.baizhi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("record")
public class Record {
    @TableId(type = IdType.AUTO)
    private int recordId;
    private int userId;
    private int titleId;
    private int optionId;

    @Override
    public String toString() {
        return "Record{" +
                "recordId=" + recordId +
                ", userId=" + userId +
                ", titleId=" + titleId +
                ", optionId=" + optionId +
                '}';
    }

    public Record() {
    }

    public Record(int recordId, int userId, int titleId, int optionId) {
        this.recordId = recordId;
        this.userId = userId;
        this.titleId = titleId;
        this.optionId = optionId;
    }

    public int getRecordId() {
        return recordId;
    }

    public void setRecordId(int recordId) {
        this.recordId = recordId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getTitleId() {
        return titleId;
    }

    public void setTitleId(int titleId) {
        this.titleId = titleId;
    }

    public int getOptionId() {
        return optionId;
    }

    public void setOptionId(int optionId) {
        this.optionId = optionId;
    }
}
